<template>
	<view>
		<u-navbar :title="$t('c2c.detail')" showback="true"></u-navbar>
		<view class="m-30">
			<text class="d-block font-size-32 text-center" style="color: #666666">{{article.title}}</text>
			<view v-html="article.content" class="mt-20" style="color: #000;">

			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				article:{}
			};
		},
		onLoad(options) {
			const {id} = options
			this.id = id
		},
		onShow() {
			this.getNewsDetail()
		},
		methods:{
			getNewsDetail(){
				this.$u.api.index.getNewsDetail(this.id).then(res=>{
					this.article = res
				})
			}
		}
	}
</script>

<style lang="scss">

</style>
